package com.t19;

/**
 * Created by xuyiwei on 2018/9/12.
 */
enum Activity{
    SITTING,LYING,STANDING,HOPPING,RUNNING,DODGING,JUMPING,FALLING,FLYING;
}
public class RandomTest {
    public static void main(String[] args) {
        //getEnumConstants返回该枚举所有值的枚举类型
        System.out.println(Activity.class.getEnumConstants());
        for(int i=0;i<20;i++){
            System.out.println(Enums.random(Activity.class)+" ");
        }
        /**
         * STANDING
         FLYING
         RUNNING
         STANDING
         RUNNING
         STANDING
         LYING
         DODGING
         SITTING
         RUNNING
         HOPPING
         HOPPING
         HOPPING
         RUNNING
         STANDING
         LYING
         FALLING
         RUNNING
         FLYING
         LYING
         */
    }
}
